import request from '@/plugins/axios'


// 质量问题接口
export default {
  // 4.5.	质量问题处理分页列表
  findPageList(params = {}) {
    return request.get('/quality/findPageList', { params })
  },
  // 4.1.	新增
  qualityInsert(params = {}) {
    return request.post('/quality/insert', params)
  },
  //4.2.	修改
  qualityUpdate(params = {}) {
    return request.post('/quality/update', params)
  },
  // 4.3.	删除
  qualityDeleteById(params = {}) {
    return request.get('/quality/deleteById', {params})
  },
  // 4.4.	质量问题设置重点关注
  qualityFocus(params = {}) {
    return request.post('/quality/focus', {}, {params})
  },
  // 4.6.	质量问题概述查看
  findAttachListByQualityId(params = {}) {
    return request.get('/quality/findAttachListByQualityId', {params})
  },
  //	4.7.	保存质量问题概述
  qualitySaveAttachList(params = {}) {
    return request.post('/quality/saveAttachList', params)
  },
  // 质量导入接口
  qualityImportUrl: '/quality/importExcel'
}